id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: Conditionalsconditionals4

prev  |  next  |  chance

Predict the result.
By Margot '24

def calc(x):
    if x % 7 == 0:
        return x + 100
    else:
        return x
Function Call  Return Value
calc(17)    
calc(49)    
calc(84)    
calc(62)    

Experiment with this code on Gitpod.io

⬅ Back